package com.hdu.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hdu.enums.WebsiteLabel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 网站实体类
 * </p>
 *
 * @author xiaobai
 * @since 2025-02-07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("website")
public class Website implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 网站名
     */
    private String name;

    /**
     * 网站头像
     */
    private String cover;

    /**
     * 网站链接
     */
    private String url;

    /**
     * 网站标签
     */
    private WebsiteLabel label;

    /**
     * 网站介绍
     */
    private String sign;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
